package com.tanhua.dubbo.api.mongo;

import com.tanhua.model.mongo.QuestionBank;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;

import java.util.List;

@DubboService
public class QuestionnaireApiImpl implements QuestionnaireApi {
    @Autowired
    private MongoTemplate mongoTemplate;
    @Override
    public List<QuestionBank> findSoul() {
        List<QuestionBank> questionBankList = mongoTemplate.findAll(QuestionBank.class);
        return questionBankList;
    }
}
